package com.springbootvue3.core.controller;

import com.springbootvue3.core.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @RequestMapping("/user/login")
    public void login(@RequestBody User user){
        System.out.println("触发 "+user.toString());
    }
}